package com.bicycle.rentalsystem.service.impl.user;

import com.bicycle.rentalsystem.dao.admin.LeaseDao;
import com.bicycle.rentalsystem.dao.impl.user.LeaseDaoImpl;
import com.bicycle.rentalsystem.pojo.user.LeaseInfo;
import com.bicycle.rentalsystem.service.user.LeaseService;

public class LeaseServiceImpl implements LeaseService {

    private LeaseDao leaseDao = new LeaseDaoImpl();

    @Override
    public LeaseInfo getLeaseInfo(String username) {
        LeaseInfo leaseInfo = leaseDao.getLeaseInfo(username);
        return leaseInfo;
    }

    @Override
    public int returnBike(String username) {
        return leaseDao.returnBike(username);
    }


}
